package com.cskaoyan.vo;

import lombok.Data;

/**
 * 作者：whl
 * 功能：
 */
@Data
public class WxCouponReceiveVo {
    String errmsg;
    Integer errno;

    public static WxCouponReceiveVo ok(){
        WxCouponReceiveVo wxCouponReceiveVo = new WxCouponReceiveVo();
        wxCouponReceiveVo.setErrno(0);
        wxCouponReceiveVo.setErrmsg("优惠券领取成功");

        return wxCouponReceiveVo;
    }

    public static WxCouponReceiveVo error(){
        WxCouponReceiveVo wxCouponReceiveVo = new WxCouponReceiveVo();
        wxCouponReceiveVo.setErrno(740);
        wxCouponReceiveVo.setErrmsg("优惠券已经领取过");

        return wxCouponReceiveVo;
    }
}
